<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
global $base_dir;
$base_dir='../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件

//排序

	$data=$_POST['sort'];
	foreach($data as $k=>$v){
		$sql="update attractions set Att_sort=$v where Att_id=$k";	
		mysql_query($sql);
	}
	echo "<script>alert('排序保存成功');window.history.back(-1);</script>";
	

?>